package io.github.heollhai.common.entity.request;

import io.github.heollhai.common.enums.EnumSocketType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: lmf
 * @Create: 2024/10/17 9:51
 * Description: 消息请求
 */
@Data
public class SocketMessageRequest implements Serializable {
    @Schema(description = "消息内容")
    @NotBlank(message = "消息内容不能为空")
    private String message;

    @Schema(description = "消息类型")
    @NotNull(message = "消息类型不能为空")
    private EnumSocketType type;

    @Schema(description = "用户id 有用户id通知指定用户,没有用户id通知所有用户")
    private String userId;

    @Schema(description = "消息标题")
    private String msgTitle;

    @Schema(description = "socketId")
    private Integer socketId;
}
